# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ptylie
pkgver=0.2
pkgrel=1
pkgdesc="Record a terminal session with automatic keyboard entry"
url="https://github.com/p-gen/ptylie"
arch="all"
license="GPL-2.0"
options="suid !check"  # no tests provided
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/p-gen/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="37945007d9eabcdf02aa67150567e2a39c8fa56d0948aecc245b6135c7f5687f0e92a3cc8562771400f6198d5b1ee91ee9e5ea5a298ae5822c00c0c2d1203728  ptylie-0.2.tar.gz"
